<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

<c:set var="user" value="${sessionScope.usuario}" scope="session"></c:set>

<f:view>

	<c:if test="${null ne sessionScope.usuario}">
		<c:redirect url="usuarioInfo.jsp"></c:redirect>
	</c:if>
	
	<jsp:include page="header.jsp"/>
	
	<c:choose>
		<c:when test="${null == sessionScope.usuario}">
		
			<div id="conteudoNaoLogado" align="center">
		
			<table style="border-color: black;">
				<tr>
					<td width="170px" height="150" class="iconesIndex">
						<a href="/register.kml">
							<img alt="Registre-se" src="/images/registre.png"/>
						</a>	
					</td>
					<td width="80px"></td>
					<td width="170px" height="150" class="iconesIndex">
						<a href="/login.kml">
							<img alt="Login" src="/images/login.png"/>
						</a>	
					</td>
					<td width="80px"></td>
					<td width="170px" height="150" class="iconesIndex">
						<a href="/sobre.jsp">
							<img alt="Sobre" src="/images/sobre.png"/>
						</a>	
					</td>
				</tr>
			</table>
		
			</div>
		
		</c:when>
		<c:otherwise>
			<c:redirect url="usuarioInfo.jsp"></c:redirect>	
		</c:otherwise>
	</c:choose>
</f:view>
<jsp:include page="footer.jsp"/>
